Skip to content

Conversation

@bendhouseart
Copy link
Contributor

This adds the canvas element to capture user inputs via drawing for protocols such as MOCA.

@yibeichan yibeichan requested a review from Copilot June 16, 2025 15:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a canvas element to capture user drawings as part of the MOCA protocol input. Key changes include updating configuration (githubSrc) for image sourcing, integrating and implementing a new CanvasInput component for drawing input, and updating the InputSelector to conditionally render the canvas input.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/config.js Updated githubSrc URL to a localhost endpoint for development use.
src/components/SurveyItem/SurveyItem.vue Added a uiConfig computed property and debug logging for background Image.
src/components/Inputs/CanvasInput/CanvasInput.vue New component implementation for canvas drawing input using bootstrap-vue.
src/components/InputSelector/InputSelector.vue Integrated CanvasInput component as an additional input option.
src/components/CanvasInput.vue Alternative CanvasInput implementation using plain HTML/CSS.
babel.config.js Reformatted preset configuration for babel.
Comments suppressed due to low confidence (1)

src/components/CanvasInput.vue:1

  • There appear to be two components named 'CanvasInput' in different directories; consider renaming one to reduce possible confusion during component registration and maintenance.
<template>

put the original url back
@yibeichan
Copy link
Contributor

yibeichan commented Jun 16, 2025

@bendhouseart, thanks for the PR! We need to fix the relative path for importing StudySign. Remember when we looked at your files together, StudySign was in the wrong position. Probably that's why the CI failed.
Also, if you have a chance, would you like to add a PR to demo-protocol with your new component as well, or is it private that cannot be pushed (you mentioned this...)

@bendhouseart
Copy link
Contributor Author

Something odd is going on with the diff rendering, closing and reopening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants